package com.fwj.user.entity.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author: fwj
 * @Data: 2022/4/13 19:01
 * @Version 1.0
 * @Description:    库： museum0base_xxx(环境)     表名： user_base_info
 */

@ApiModel(value="com.fwj.user.entity.user.UserBaseInfo")
@Data
@Table(name = "user_base_info")
public class UserBaseInfo implements Serializable {
    /**
     * 主键
     */
    @Id
    @Column(name = "id")
    @GeneratedValue(generator = "JDBC")
    @ApiModelProperty(value="主键")
    private Long id;

    /**
     * 编号
     */
    @Column(name = "number")
    @ApiModelProperty(value="编号")
    private Long number;

    /**
     * 昵称
     */
    @Column(name = "nick_name")
    @ApiModelProperty(value="昵称")
    private String nickName;

    /**
     * 头像
     * */
    @Column(name = "image")
    @ApiModelProperty(value="头像")
    private String image;

    /**
     * 是否展示信息
     */
    @Column(name = "is_show")
    @ApiModelProperty(value="是否展示信息")
    private Boolean isShow;

    /**
     * 性别
     */
    @Column(name = "sex")
    @ApiModelProperty(value="性别")
    private String sex;

    /**
     * 生日
     */
    @Column(name = "birthday")
    @ApiModelProperty(value="生日")
    @Temporal(TemporalType.TIMESTAMP)
    private Date birthday;

    /**
     * 地址
     */
    @Column(name = "address")
    @ApiModelProperty(value="地址")
    private String address;

    /**
     * 学校
     */
    @Column(name = "school")
    @ApiModelProperty(value="学校")
    private String school;

    /**
     * 职业
     */
    @Column(name = "occupation")
    @ApiModelProperty(value="职业")
    private String occupation;

    /**
     * 个人介绍
     */
    @Column(name = "personal_profile")
    @ApiModelProperty(value="个人介绍")
    private String personalProfile;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    @ApiModelProperty(value="创建时间")
    @Temporal(TemporalType.TIMESTAMP)
    private Date createTime;

    /**
     * 更新时间
     */
    @Column(name = "update_time")
    @ApiModelProperty(value="更新时间")
    @Temporal(TemporalType.TIMESTAMP)
    private Date updateTime;

    /**
     * 用户账号状态
     */
    @Column(name = "status")
    @ApiModelProperty(value="用户账号状态")
    private String status;

    private static final long serialVersionUID = 45878255445L;
}
